body {
    
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;

    //   头部样式
    header {
        width: 100%;
        height: 40px;
        line-height: 40px;

        p {
            position: relative;
            border: 2px solid #d5c89c;
            border-radius: 25px;
            width: 100%;
            height: 25px;

            span {
                position: absolute;
                top: -12px;
                left: 7px;
                display: inline-block;
                width: 5%;
                height: 20px;
                font-size: 20px !important;
            }

            input {
                position: absolute;
                top: 1px;
                left: 31px;
                background-color: #f4f4f4;
                width: 70%;
                height: 20px;
            }
        }

    }

    // 页面主体部分
    main {
        padding: 15px;
        width: 100%;
        height: 1px;
        flex-grow: 1;
        overflow-y: auto;

        // 轮播图
        .swiper {
            width: 100%;
            height: 210px;

            img {
                width: 100%;
                height: 210px;
            }
        }

        .commodity {
            margin-top: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            background-color: white;
            // overflow-x: auto;
            width: 100%;
            height: 180px;

            li {
                text-align: center;
                width: 20%;

                img {
                    height: 70px;
                }

                p {
                    color: black;
                }
            }
        }

        // 迎新年焕新家
        .home {
            margin-top: 15px;
            background-color: #c23f35;
            border-radius: 20px;
            width: 100%;
            height: 220px;

            .home-top {
                padding: 0 10px;
                display: flex;
                justify-content: space-between;
                width: 100%;
                height: 100px;

                .newyear_left {
                    width: 60%;

                    h2 {
                        margin: 20px 0 10px 0;
                        color: white;
                    }

                    span {
                        display: inline-block;
                        text-align: center;
                        background: linear-gradient(to right, #f35130, #ed8e3d);
                        border: 2px solid #f2d6c2;
                        border-radius: 20px;
                        color: #f2d6c2;
                        font-size: 14px;
                        line-height: 30px;
                        height: 30px;
                        width: 200px;
                    }
                }

                .newyear_right {
                    position: relative;
                    width: 40%;
                    height: 100px;

                    img {
                        height: 90px;
                    }

                    .boutique1 {
                        position: absolute;
                        left: 0;
                        top: -5px;
                    }

                    .boutique4 {
                        position: absolute;
                        left: 32px;
                        top: -22px;
                    }

                    .boutique3 {
                        position: absolute;
                        left: 66px;
                        top: 0px;
                    }
                }


            }

            .home-bottom {
                padding: 5px;
                display: flex;
                justify-content: space-between;
                width: 100%;
                height: 120px;

                li {
                    padding: 3px;
                    text-align: center;
                    background-color: white;
                    border-radius: 10px;
                    width: 24%;
                    height: 100px;

                    h5 {
                        color: black;
                    }

                    span {
                        font-size: 8px;
                        color: gray;
                    }

                    img {
                        height: 60px;
                    }
                }
            }
        }

        // 手机系列内容
        .phone {
            margin-top: 10px;
            display: flex;
            justify-content: space-between;
            width: 100%;

            li {
                display: flex;
                justify-content: space-between;
                padding: 5px;
                border: 2px solid #c23f35;
                border-radius: 20px;
                width: 49%;
                height: 90px;

                .left {
                    width: 60%;

                    h5 {
                        margin: 10px 0;
                        color: black;
                    }

                    span {
                        display: inline-block;
                        text-align: center;
                        width: 90px;
                        height: 20px;
                        line-height: 20px;
                        background-color: #c23f35;
                        border-radius: 25px;
                        color: white;
                        font-size: 12px;
                        font-weight: 100;
                    }
                }

                .img {
                    margin-top: 10px;
                    width: 40%;

                    img {
                        height: 65px;
                    }
                }

            }
        }

        // box样式
        .box {
            margin: 10px 0;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            overflow-x: scroll;
            // width: 100%;
            height: 40px;

            a {
                display: block;
                width: 20%;
            }
        }

        //   商品的详细信息 
        .deteils {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            width: 100%;

            li {
                margin: 5px 0;
                border-radius: 15px;
                text-align: center;
                background-color: white;
                width: 48%;

                img {
                    width: 60%;
                }

                h5 {
                    color: #3a3a3a;

                    .text {
                        display: inline-block;
                        background-color: #c23f35;
                       border-radius: 5px;
                        line-height: 15px;
                        color: #d5c89c;
                        width: 45px;
                        height: 15px;

                    }
                }
                .price{
                    color: #3a3a3a;
                }
            }
        }
    }

    footer {
        position: relative;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        border-top:1px solid gray;
        width: 100%;
        height: 60px;
        background-color: #f7f7f7;
        p{
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 18%;
            i{
                color: #3a3a3a;
                font-size: 28px!important;
            }
        }
        .pp{
            position: absolute;
            top: -20px;
            padding: 8px;
            text-align: center;
            background-color: #c23f35;
            border-radius: 50%;
            width: 65px;
            height: 65px;
            color: wheat;
            font-size: 12px;
        }
    }
}